home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / TSMTE.p < prev    next >
Encoding:
Text File  |  1996-05-05  |  3.6 KB  |  147 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        TSMTE.p
  3.  
  4.      Contains:    Text Services Managerfor TextEdit Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1.3
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT TSMTE;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __TSMTE__}
  30. {$SETC __TSMTE__ := 1}
  31.  
  32. {$I+}
  33. {$SETC TSMTEIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TEXTEDIT__}
  38. {$I TextEdit.p}
  39. {$ENDC}
  40. {    Types.p                                                        }
  41. {        ConditionalMacros.p                                        }
  42. {    Quickdraw.p                                                    }
  43. {        MixedMode.p                                                }
  44. {        QuickdrawText.p                                            }
  45.  
  46. {$IFC UNDEFINED __DIALOGS__}
  47. {$I Dialogs.p}
  48. {$ENDC}
  49. {    Errors.p                                                    }
  50. {    Memory.p                                                    }
  51. {    Menus.p                                                        }
  52. {    Controls.p                                                    }
  53. {    Windows.p                                                    }
  54. {        Events.p                                                }
  55. {            OSUtils.p                                            }
  56.  
  57. {$IFC UNDEFINED __APPLEEVENTS__}
  58. {$I AppleEvents.p}
  59. {$ENDC}
  60. {    EPPC.p                                                        }
  61. {        AppleTalk.p                                                }
  62. {        Files.p                                                    }
  63. {            Finder.p                                            }
  64. {        PPCToolbox.p                                            }
  65. {        Processes.p                                                }
  66. {    Notification.p                                                }
  67.  
  68. {$IFC UNDEFINED __TEXTSERVICES__}
  69. {$I TextServices.p}
  70. {$ENDC}
  71. {    Components.p                                                }
  72.  
  73. {$PUSH}
  74. {$ALIGN MAC68K}
  75. {$LibExport+}
  76.  
  77. CONST
  78.     kTSMTESignature                = 'tmTE';
  79.     kTSMTEInterfaceType            = 'tmTE';
  80.     kTSMTEDialog                = 'tmDI';
  81.  
  82. { update flag for TSMTERec}
  83.     kTSMTEAutoScroll            = 1;
  84.  
  85. { callback procedure definitions}
  86. TYPE
  87.     TSMTEPreUpdateProcPtr = ProcPtr;  { PROCEDURE TSMTEPreUpdate(textH: TEHandle; refCon: LONGINT); }
  88.     TSMTEPostUpdateProcPtr = ProcPtr;  { PROCEDURE TSMTEPostUpdate(textH: TEHandle; fixLen: LONGINT; inputAreaStart: LONGINT; inputAreaEnd: LONGINT; pinStart: LONGINT; pinEnd: LONGINT; refCon: LONGINT); }
  89.     TSMTEPreUpdateUPP = UniversalProcPtr;
  90.     TSMTEPostUpdateUPP = UniversalProcPtr;
  91.  
  92.     TSMTERec = RECORD
  93.         textH:                    TEHandle;
  94.         preUpdateProc:            TSMTEPreUpdateUPP;
  95.         postUpdateProc:            TSMTEPostUpdateUPP;
  96.         updateFlag:                LONGINT;
  97.         refCon:                    LONGINT;
  98.     END;
  99.  
  100.     TSMTERecPtr = ^TSMTERec;
  101.     TSMTERecHandle = ^TSMTERecPtr;
  102.  
  103.     TSMDialogRecord = RECORD
  104.         fDialog:                DialogRecord;
  105.         fDocID:                    TSMDocumentID;
  106.         fTSMTERecH:                TSMTERecHandle;
  107.         fTSMTERsvd:                ARRAY [0..2] OF LONGINT;                { reserved}
  108.     END;
  109.  
  110.     TSMDialogPeek = ^TSMDialogRecord;
  111.  
  112.  
  113. CONST
  114.     uppTSMTEPreUpdateProcInfo = $000003C0; { PROCEDURE (4 byte param, 4 byte param); }
  115.     uppTSMTEPostUpdateProcInfo = $000FFFC0; { PROCEDURE (4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param, 4 byte param); }
  116.  
  117. FUNCTION NewTSMTEPreUpdateProc(userRoutine: TSMTEPreUpdateProcPtr): TSMTEPreUpdateUPP;
  118.     {$IFC NOT GENERATINGCFM }
  119.     INLINE $2E9F;
  120.     {$ENDC}
  121.  
  122. FUNCTION NewTSMTEPostUpdateProc(userRoutine: TSMTEPostUpdateProcPtr): TSMTEPostUpdateUPP;
  123.     {$IFC NOT GENERATINGCFM }
  124.     INLINE $2E9F;
  125.     {$ENDC}
  126.  
  127. PROCEDURE CallTSMTEPreUpdateProc(textH: TEHandle; refCon: LONGINT; userRoutine: TSMTEPreUpdateUPP);
  128.     {$IFC NOT GENERATINGCFM}
  129.     INLINE $205F, $4E90;
  130.     {$ENDC}
  131.  
  132. PROCEDURE CallTSMTEPostUpdateProc(textH: TEHandle; fixLen: LONGINT; inputAreaStart: LONGINT; inputAreaEnd: LONGINT; pinStart: LONGINT; pinEnd: LONGINT; refCon: LONGINT; userRoutine: TSMTEPostUpdateUPP);
  133.     {$IFC NOT GENERATINGCFM}
  134.     INLINE $205F, $4E90;
  135.     {$ENDC}
  136.  
  137. {$ALIGN RESET}
  138. {$POP}
  139.  
  140. {$SETC UsingIncludes := TSMTEIncludes}
  141.  
  142. {$ENDC} {__TSMTE__}
  143.  
  144. {$IFC NOT UsingIncludes}
  145.  END.
  146. {$ENDC}
  147.